<?php
namespace app\application\admin;
use app\admin\controller\Admin;

class Index extends Admin
{
	public $tab_data = [];
    /**
     * 初始化方法
     */
    protected function _initialize()
    {
        parent::_initialize();

	    $tab_data['menu'] = [
	        [
	            'title' => '已启用模块',
	            'url' => 'admin/module/index?status=2',
	        ],
	        [
	            'title' => '未启用模块',
	            'url' => 'admin/module/index?status=1',
	        ],
	        [
	            'title' => '未安装模块',
	            'url' => 'admin/module/index?status=0',
	        ],
	        [
	            'title' => '导入模块',
	            'url' => 'admin/module/import',
	        ],
	    ];
	    if (config('develop.app_debug') == 1) {
	        array_push($tab_data['menu'], ['title' => '设计新模块', 'url' => 'admin/module/design',]);
	    }
	    $this->tab_data = $tab_data;
	}

    public function index()
    {
        return $this->afetch();
    }
}